package com.ruoyi.business.domain;

import java.math.BigDecimal;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用于存储评价指标及其详细信息对象 t_indicator
 * 
 * @author song
 * @date 2024-11-24
 */

public class Indicator extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;


    private boolean isEditName = false;


    private String type;

    /** 评价指标名称 */

    private String evaluationMetric;

    @Excel(name = "评价指标名称")
    private String evaluationMetricName;

    /** 权重值，例如 0.85 */
    @Excel(name = "权重值，例如 0.85")
    private BigDecimal weight;

    /** 评估的具体规则或描述 */
    @Excel(name = "评估的具体规则或描述")
    private String assessmentDetails;

    /** 评分的标准或方法 */
    @Excel(name = "评分的标准或方法")
    private String scoringCriteria;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEvaluationMetric(String evaluationMetric) 
    {
        this.evaluationMetric = evaluationMetric;
    }

    public String getEvaluationMetric() 
    {
        return evaluationMetric;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setAssessmentDetails(String assessmentDetails) 
    {
        this.assessmentDetails = assessmentDetails;
    }

    public String getAssessmentDetails() 
    {
        return assessmentDetails;
    }
    public void setScoringCriteria(String scoringCriteria) 
    {
        this.scoringCriteria = scoringCriteria;
    }

    public String getScoringCriteria() 
    {
        return scoringCriteria;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    public boolean isEditName() {
        return isEditName;
    }

    public void setEditName(boolean editName) {
        this.isEditName = editName;
    }

    public void setIsEditName(boolean editName) {
        this.isEditName = editName;
    }

    public Boolean getIsEditName(){
        return isEditName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("evaluationMetric", getEvaluationMetric())
            .append("weight", getWeight())
            .append("assessmentDetails", getAssessmentDetails())
            .append("scoringCriteria", getScoringCriteria())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remarks", getRemarks())
            .toString();
    }

    public String getEvaluationMetricName() {
        return evaluationMetricName;
    }

    public void setEvaluationMetricName(String evaluationMetricName) {
        this.evaluationMetricName = evaluationMetricName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
